/*
 * ksAtomBlock.cpp
 *
 *  Created on: Aug 3, 2011
 *      Author: wang
 */

#include "ksAtomBlock.h"
#include <cstring>
#include <fstream>
#include "ksDefines.h"
#include "ksData.h"

ksAtomBlock::ksAtomBlock()
{

}

ksAtomBlock::~ksAtomBlock()
{

}

void ksAtomBlock::description()
{
    std::cout << "atomBlock:{ ";
    std::cout << "type:" << blockType2String(_blockHeader.atom.type);
    std::cout << ",id:" << _blockHeader.atom.id;
    std::cout << ",compressed:" << (_blockHeader.atom.compress == 1 ? "YES" : "NO");
    std::cout << ",encrypted:" << (_blockHeader.atom.encrypt == 1 ? "YES" : "NO");
    std::cout << ",data length:" << _blockHeader.atom.dataLength;
    std::cout << " }" << std::endl;
}
